home *** CD-ROM | disk | FTP | other *** search
/ Gigarom 4 / Mac Giga-ROM 4.0 - 1993.toast / FILES / HYP / R-S / Script Extractor / background_2634.txt < prev    next >
Encoding:
Text File  |  1989-04-13  |  4.0 KB  |  182 lines

  1. -- background: 2634 from stack: in
  2. -- bmap block id: 3662
  3. -- flags: 4000
  4. -- background id: 0
  5. -- name: 
  6.  
  7.  
  8. -- part 16 (button)
  9. -- low flags: 00
  10. -- high flags: 0000
  11. -- rect: left=389 top=310 right=333 bottom=415
  12. -- title width / last selected line: 0
  13. -- icon id / first selected line: 1014 / 1014
  14. -- text alignment: 1
  15. -- font id: 0
  16. -- text size: 12
  17. -- style flags: 0
  18. -- line height: 16
  19. -- part name: Prev
  20. ----- HyperTalk script -----
  21. on mouseUp
  22.   visual wipe right
  23.   go prev
  24. end mouseUp
  25.  
  26.  
  27.  
  28. -- part 17 (button)
  29. -- low flags: 00
  30. -- high flags: 0000
  31. -- rect: left=419 top=310 right=333 bottom=444
  32. -- title width / last selected line: 0
  33. -- icon id / first selected line: 1013 / 1013
  34. -- text alignment: 1
  35. -- font id: 0
  36. -- text size: 12
  37. -- style flags: 0
  38. -- line height: 16
  39. -- part name: Next
  40. ----- HyperTalk script -----
  41. on mouseUp
  42.   visual wipe left
  43.   go next
  44. end mouseUp
  45.  
  46.  
  47.  
  48. -- part 18 (field)
  49. -- low flags: 01
  50. -- high flags: 2007
  51. -- rect: left=4 top=10 right=303 bottom=509
  52. -- title width / last selected line: 0
  53. -- icon id / first selected line: 0 / 0
  54. -- text alignment: 0
  55. -- font id: 3
  56. -- text size: 10
  57. -- style flags: 0
  58. -- line height: 13
  59. -- part name: Script
  60.  
  61.  
  62. -- part 22 (button)
  63. -- low flags: 00
  64. -- high flags: A003
  65. -- rect: left=167 top=314 right=331 bottom=251
  66. -- title width / last selected line: 0
  67. -- icon id / first selected line: 0 / 0
  68. -- text alignment: 1
  69. -- font id: 0
  70. -- text size: 12
  71. -- style flags: 0
  72. -- line height: 16
  73. -- part name: Reformat
  74. ----- HyperTalk script -----
  75. on mouseUp
  76.   if char 1 of line 2 of field 1 is "-" then
  77.     answer "This script has already been reformatted!"
  78.     exit mouseUp
  79.   end if
  80.   answer "Do you want to format this script?" with no or yes
  81.   if it is "no"
  82.   then exit mouseUp
  83. else
  84.   set lockScreen to true
  85.   set cursor to 4
  86.   put field 1 into temp
  87.   put "Reformatting; long scripts take a good bit of time."
  88.   -- 557 lines took 8 minutes!!
  89.   set the lockScreen to true
  90.   set the cursor to 4
  91.   if line 1 of temp is empty then delete line 1 of temp
  92.   put the number of lines in temp into k
  93.   put 1 into l
  94.   repeat
  95.     if the number of words in line l of temp <1 then
  96.       delete line l of temp
  97.       put l - 1 into l
  98.       put k - 1 into k
  99.     end if
  100.     put l + 1 into l
  101.     if char 1 of line l of temp is "o" or char 1 of line l of temp is "‚Ä¢" or char 1 of line l of temp is "‚óä" then
  102.       put "..............." & return before line l of temp
  103.       put l + 1 into l
  104.       put k + 1 into k
  105.     end if
  106.     if char 1 of line l of temp is ">" or char 1 of line l of temp is "*" then
  107.       put "---------------" & return before line l of temp
  108.       put l + 1 into l
  109.       put k + 1 into k
  110.     end if
  111.     if l ‚â• k then exit repeat
  112.   end repeat
  113.   set the cursor to 1
  114.   put temp into field 1
  115.   set the lockScreen to false
  116.   hide msg
  117. end if
  118. end mouseUp
  119.  
  120.  
  121. -- part 24 (button)
  122. -- low flags: 00
  123. -- high flags: A003
  124. -- rect: left=256 top=314 right=331 bottom=341
  125. -- title width / last selected line: 0
  126. -- icon id / first selected line: 0 / 0
  127. -- text alignment: 1
  128. -- font id: 0
  129. -- text size: 12
  130. -- style flags: 0
  131. -- line height: 16
  132. -- part name: Print Script
  133. ----- HyperTalk script -----
  134. on mouseUp
  135.   ask "File name?" with "P."&&short name of this card
  136.   if it is empty then exit mouseUp
  137.   put  it into temp
  138.   open file temp
  139.   write field 1 to file temp
  140.   close file temp
  141.   print temp with "teachText"
  142. end mouseUp
  143.  
  144.  
  145. -- part 26 (button)
  146. -- low flags: 00
  147. -- high flags: 2000
  148. -- rect: left=449 top=312 right=335 bottom=484
  149. -- title width / last selected line: 0
  150. -- icon id / first selected line: 21700 / 21700
  151. -- text alignment: 1
  152. -- font id: 0
  153. -- text size: 12
  154. -- style flags: 0
  155. -- line height: 16
  156. -- part name: Home
  157. ----- HyperTalk script -----
  158. on mouseUp
  159.   visual dissolve to white
  160.   go home
  161. end mouseUp
  162.  
  163.  
  164.  
  165. -- part 27 (button)
  166. -- low flags: 00
  167. -- high flags: A003
  168. -- rect: left=33 top=314 right=330 bottom=147
  169. -- title width / last selected line: 0
  170. -- icon id / first selected line: 0 / 0
  171. -- text alignment: 1
  172. -- font id: 0
  173. -- text size: 12
  174. -- style flags: 0
  175. -- line height: 16
  176. -- part name: Extract Script
  177. ----- HyperTalk script -----
  178. on mouseUp
  179.   exScript
  180. end mouseUp
  181.  
  182.